#pragma once
#include "afxwin.h"
#include "afxcmn.h"


// DetailBox dialog

class DetailBox : public CDialogEx
{
	DECLARE_DYNAMIC(DetailBox)

public:
	DetailBox(CWnd* pParent = NULL);   // standard constructor
	DetailBox(CString uName);   // standard constructor
	virtual ~DetailBox();

// Dialog Data
	enum { IDD = IDD_DETAIL };

protected:	 
//	BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	static DetailBox *s_detail;
	CEdit Uname;
	CString UnameStr;
	CString TitleStr;
	CString mMsg;
	CString mUname;
	CRichEditCtrl mHistory;
	CEdit Input;
	CButton Send;
	INT mRid;
	afx_msg void OnEnChangeUname();
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedSend();
	afx_msg LRESULT  OnChatPrivate(WPARAM wp,LPARAM lp);
	static DetailBox* Instance();
	CEdit m_Rid;
	afx_msg void OnBnClickedKick();
};
